package et.six.eta.View;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.ImageView;
import android.widget.TextView;
import com.bumptech.glide.Glide;



import et.six.eta.R;


public class DatailActivity extends AppCompatActivity{
    ImageView imageView ;
    TextView detail_price,detail,detail_name;



    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_detail);
        imageView = findViewById(R.id.detail_img);
        detail = findViewById(R.id.detail);
        detail_name = findViewById(R.id.detail_name);
        detail_price = findViewById(R.id.detail_price);
        Intent intent = getIntent();
        Bundle bundle = intent.getExtras();
        Glide.with(this).load(bundle.get("food_img")).into(imageView);

        detail.setText(bundle.get("food_detail")+ "");
        detail_name.setText(bundle.get("food_name")+ "");
        detail_price.setText(bundle.get("food_price")+ "");

    }

}
